package com.softstao.guoyu.model.me;

import com.softstao.guoyu.model.sale.OrderGoods;

import java.util.List;

/**
 * Created by vaikus on 2017/7/21.
 */

public class RebateDetail {
    /**
     * subAgentId : 1
     * name : 张三
     * level : 一级
     * money : 200
     * rebateAgent : 李四
     * avatar : www.baidu.com
     * orderList : [{"orderCode":"123123123","date":"时间戳","orderer":"黄某","money":2000,"productList":[{"name":"原汁机(绿色)","num":16,"price":300,"img":"www.baidu.com"},{"name":"原汁机(红色)","num":24,"price":300,"img":"www.baidu.com"}]},{"orderCode":"12341242","date":"时间戳","orderer":"黄某","money":2000,"productList":[{"name":"原汁机(绿色)","num":16,"price":300,"img":"www.baidu.com"},{"name":"原汁机(红色)","num":24,"price":300,"img":"www.baidu.com"}]}]
     */

    private int subAgentId;
    private int relaAgentId;
    private String name;
    private String level;
    private float money;
    private String avatar;
    private String mobile;
    private List<OrderListBean> orderList;

    public int getSubAgentId() {
        return subAgentId;
    }

    public void setSubAgentId(int subAgentId) {
        this.subAgentId = subAgentId;
    }

    public int getRelaAgentId() {
        return relaAgentId;
    }

    public void setRelaAgentId(int relaAgentId) {
        this.relaAgentId = relaAgentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public List<OrderListBean> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<OrderListBean> orderList) {
        this.orderList = orderList;
    }

    public static class OrderListBean {
        /**
         * orderCode : 123123123
         * date : 时间戳
         * orderer : 黄某
         * money : 2000.0
         * productList : [{"name":"原汁机(绿色)","num":16,"price":300,"img":"www.baidu.com"},{"name":"原汁机(红色)","num":24,"price":300,"img":"www.baidu.com"}]
         */

        private String orderCode;
        private long date;
        private String orderer;
        private float money;
        private String rebateAgent;
        private String level;
        private List<OrderGoods> productList;

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public long getDate() {
            return date;
        }

        public void setDate(long date) {
            this.date = date;
        }

        public String getOrderer() {
            return orderer;
        }

        public void setOrderer(String orderer) {
            this.orderer = orderer;
        }

        public float getMoney() {
            return money;
        }

        public void setMoney(float money) {
            this.money = money;
        }

        public String getRebateAgent() {
            return rebateAgent;
        }

        public void setRebateAgent(String rebateAgent) {
            this.rebateAgent = rebateAgent;
        }

        public String getLevel() {
            return level;
        }

        public void setLevel(String level) {
            this.level = level;
        }

        public List<OrderGoods> getProductList() {
            return productList;
        }

        public void setProductList(List<OrderGoods> productList) {
            this.productList = productList;
        }
    }
}
